package com.example.myapplication.soaprequest.request

import com.example.mylibrary.utils.SpUtils
import org.simpleframework.xml.Element
import org.simpleframework.xml.Namespace
import org.simpleframework.xml.NamespaceList
import org.simpleframework.xml.Root

/**
 * 公司公告详情参数
 */
@Root(name = "registerwrite", strict = false)
@NamespaceList(Namespace(reference = "http://tempurl.org"))
class RegisterWriteRequest : BaseRequest() {
    @field:Element(name = "opid", required = false)
    var opid: String = SpUtils.get("opId", "") as String  // 操作员id

    @field:Element(name = "jd", required = false)
    var jd: String = "" //经度

    @field:Element(name = "wd", required = false)
    var wd: String = ""     //纬度

    @field:Element(name = "types", required = false)
    var types: String = ""      //类型 1 外出办公 2上班签到 3下班签到

    @field:Element(name = "address", required = false)
    var address: String = ""    //定位地点

    @field:Element(name = "memo", required = false)
    var memo: String = ""       //录入内容

    @field:Element(name = "clientid", required = false)
    var clientid: String = ""   // 客户ID

    @field:Element(name = "ext", required = false)
    var ext: String = ""        //文件扩展名

    @field:Element(name = "fs", required = false)
    var fs: String = ""     //上传照片字节数组
}
